package com.qixin.api.service;

import com.qixin.api.bean.ComCar;
import com.qixin.api.bean.ComChargeInfo;
import com.baomidou.mybatisplus.service.IService;
import com.qixin.api.bean.ResultPage;
import com.qixin.api.bean.VoPage;
import com.qixin.util.chargeInterfce.Charge.bean.StopChargeBean;

import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * <p>
 * 充电记录表 服务类
 * </p>
 *
 * @author 吕正睿
 * @since 2018-10-29
 */
public interface ComChargeInfoService extends IService<ComChargeInfo> {
	ResultPage<ComChargeInfo> selectMyPage(VoPage voPage,HttpSession session)  ;
	ResultPage<ComChargeInfo> selectMyPage3(VoPage voPage)  ;
	ResultPage<ComChargeInfo> search(Map map, VoPage voPage);
	ResultPage<ComChargeInfo>query(Map map,VoPage voPage);

	/**
	 * 微信 我的订单 关联查询充电枪的地址
	 * @param connID
	 * @return
	 */
	ComChargeInfo findAddressByWeChartMyOrder( String connID);
	ResultPage<ComChargeInfo> selectMoney(Map map,VoPage voPage)  ;

	/**
	 * 微信 启动充电桩新增充电记录
	 * @param useReslutMap
	 * @param UserId
	 * @param UserPhone
	 * @param carPlant
     * @return
     */
	boolean weChartInsert(Map useReslutMap,Long UserId,String UserPhone,String carPlant);

	/**
	 * 微信  停止充电修改充电记录
	 * @param stopChargeBean
	 * @param carPlant
     * @return
     */
	boolean weChartUpdate(StopChargeBean stopChargeBean, String carPlant);
}

